﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using com.guojin.mj.net.message.login;

public class WarDetailsItemPage : MonoBehaviour
{
    public Text roomID;
    public Text time;
    public GameObject group;

    public void InitMsg(WarDetailsRet wdr)
    {
        roomID.text ="房间号："+ wdr.RoomID;
        time.text = wdr.Time;

        for (int i = 0; i < wdr.User.Count; i++)
        {
            GameObject obj = TooL.LoadPrefab(group, "WarDetailsItemItem");
            obj.GetComponent<WarDetailsItemItemPage>().InitMsg(wdr.User[i]);
        }
    }
}
